package org.springframework.fusion.sender;

import java.util.UUID;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.kafka.core.KafkaTemplate;
import org.springframework.stereotype.Service;

@Service
public class SenderService {

	@Autowired
	private KafkaTemplate<String, String> kafkaTemplate;

	public String sener() {
		String string = UUID.randomUUID().toString();
		kafkaTemplate.send("kafka-test", string);
		return string;
	}
}
